﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

namespace DataBaseReverseGenerator.DataBaseModel
{
    [Serializable]
    public class Rule
    {
        #region Ctor

        public Rule()
        {
        }

        public Rule(string parentField, string childField)
        {
            this.parentField = parentField;
            this.childField = childField;
        }

        #endregion

        #region Properties

        private string parentField;
        [XmlAttribute()]
        public string ParentField
        {
            get { return parentField; }
            set { parentField = value; }
        }

        private string childField;
        [XmlAttribute()]
        public string ChildField
        {
            get { return childField; }
            set { childField = value; }
        } 

        #endregion
    }
}
